import request from '@/utils/request'

// 查询园区信息列表
export function listParkArea(query) {
  return request({
    url: '/area/parkArea/list',
    method: 'get',
    params: query
  })
}

// 查询园区信息详细
export function getParkArea(id) {
  return request({
    url: '/area/parkArea/' + id,
    method: 'get'
  })
}

// 新增园区信息
export function addParkArea(data) {
  return request({
    url: '/area/parkArea',
    method: 'post',
    data: data
  })
}

// 修改园区信息
export function updateParkArea(data) {
  return request({
    url: '/area/parkArea',
    method: 'put',
    data: data
  })
}

// 删除园区信息
export function delParkArea(id) {
  return request({
    url: '/area/parkArea/' + id,
    method: 'delete'
  })
}

export function parkAreaTree() {
  return request({
    url: '/area/parkArea/parkAreaTree',
    method: 'get'
  })
}
